#include "Queue.h"

void QueueTest(void)
{
	Queue q;

	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	printf("%d ", QueueEmpty(&q));
	printf("%d ", QueueFront(&q));
	printf("%d ", QueueBack(&q));
	printf("%d\n", QueueSize(&q));


	QueuePop(&q);
	printf("%d ", QueueEmpty(&q));
	printf("%d ", QueueFront(&q));
	printf("%d ", QueueBack(&q));
	printf("%d\n", QueueSize(&q));

	QueuePop(&q);
	printf("%d ", QueueEmpty(&q));
	printf("%d ", QueueFront(&q));
	printf("%d ", QueueBack(&q));
	printf("%d\n", QueueSize(&q));

	QueuePop(&q);
	printf("%d ", QueueEmpty(&q));
	printf("%d ", QueueFront(&q));
	printf("%d ", QueueBack(&q));
	printf("%d\n", QueueSize(&q));

	QueuePop(&q);
	printf("%d ", QueueEmpty(&q));
	//printf("%d ", QueueFront(&q));
	//printf("%d ", QueueBack(&q));
	printf("%d\n", QueueSize(&q));

	//QueuePop(&q);

	QueueDestroy(&q);
}

int main(void)
{
	QueueTest();

	return 0;
}